package cn.tedu.imop.basic.dao.repository;
import cn.tedu.imop.common.pojo.PageData;
import cn.tedu.imop.basic.entity.BusinessCategory;

import java.io.Serializable;
import java.util.List;
/**商家分类数据层接口*/
public interface BusinessCategoryRepository {
    /**
     * 查询商家分类列表信息
     * @param category
     * @return
     */
     PageData<BusinessCategory> selectBusinessCategoryList(BusinessCategory category);
    /**
     * 添加新的商家分类信息
     * @param category
     * @return
     */
    int insertBusinessCategory(BusinessCategory category);
    default int insertBatchBusinessCategory(List<BusinessCategory> category){
        return 0;
    }
    BusinessCategory selectBusinessCategoryById(Serializable id);
    int updateBusinessCategory(BusinessCategory category);
    int deleteBusinessCategoryById(Serializable id);
    default int deleteBatchBusinessCategory(List<? extends Serializable> id){
        return 0;
    }
}
